package office.action.sale.form;

import java.util.Date;

import office.bo.sale.impl.CustomerCare;
import platform.common.bo.IIdentifiableObj;
/**
 * 标书对应的产品结构Form
 * @author ZhangYQ
 *
 */
public class CustomerCareForm {
	private String id;
	private String title;   //标题
	private Date careTime;  //关怀时间
	private String principal;//当前负责人
	private String content; //内容
	private String mark;
	private String customerId;  //对应的客户
	
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		CustomerCare bo = (CustomerCare)newObj;
		bo.setId(this.id);
		bo.setTitle(title);
		bo.setCareTime(careTime);
		bo.setPrincipal(principal);
		bo.setContent(content);
		bo.setMark(mark);
		bo.setCustomerId(customerId);
		return bo;
	}
	
	public void copyPropertiesFromBO(IIdentifiableObj baseBO) {
		CustomerCare bo = (CustomerCare)baseBO;
		this.id = bo.getId().toString();
		this.title = bo.getTitle();
		this.careTime = bo.getCareTime();
		this.principal = bo.getPrincipal();
		this.content = bo.getContent();
		this.mark = bo.getMark();
		this.customerId = bo.getCustomerId();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getCareTime() {
		return careTime;
	}

	public void setCareTime(Date careTime) {
		this.careTime = careTime;
	}

	public String getPrincipal() {
		return principal;
	}

	public void setPrincipal(String principal) {
		this.principal = principal;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

}
